<template>
  <div class="bread-item">
    <router-link v-if="to" :to="to">
        <slot></slot>
    </router-link>
    <span v-else><slot></slot></span>
    <i class="iconfont icon-angle-right"></i>
  </div>
</template>

<script>
export default {
  name: 'SyBreadItem',
  props: {
    to: {
      type: [String, Object]
    }
  }
}
</script>

<style lang="less">
.bread-item{
    margin-right: 3px;
    text-align: center;
    line-height: 30px;
    font-size: 16px;
    transition: all 0.5s;
    i{
        font-size: 12px;
        margin: 0 4px;
    }
}

a{
    font-size: 16px;
    &:hover{
      color:@themeColor;
    }
}
a,span,i{
  color: #333;
  font-size: 14px;
}
</style>
